<?php

namespace app\api\model;

use app\common\consts\RedisConstant;
use think\Model;

class ImageCategory extends Model
{
    public static function getInfoById($categoryId)
    {
        $categoryInfo = self::where(['category_id' => $categoryId])->find();
        if (!$categoryInfo)
            return [];
        return $categoryInfo;
    }
}